package messagepasser;

import java.io.Serializable;

public class UserInfo implements Serializable{
	int userid;
	String username;
	boolean onlinestatus;
	String ipaddr;
	int port;
	
	public UserInfo(int u, String un, boolean stat, String ip, int p){
		this.userid = u;
		this.username = un; 
		this.onlinestatus = stat;
		this.ipaddr = ip;
		this.port = p;
	}
	
	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public boolean isOnlinestatus() {
		return onlinestatus;
	}

	public void setOnlinestatus(boolean onlinestatus) {
		this.onlinestatus = onlinestatus;
	}

	public String getIpaddr() {
		return ipaddr;
	}

	public void setIpaddr(String ipaddr) {
		this.ipaddr = ipaddr;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public UserInfo(){}
	
}
